package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.model.domain.Depot;
import com.weixing.mall.provider.model.query.DepotQuery;
import com.weixing.mall.provider.model.vo.DepotVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库模块-仓库表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface DepotMapper extends BaseMapper<Depot> {
    List<DepotVo> selectDepotKeeperList();

    void updateStatus(long id,IsEnableEnum isEnable);

    List<DepotVo>  listBySysId(@Param("uid")Long uid, @Param("flag") Integer flag);

    IPage<DepotVo> selectByList(@Param("pg") Page page, @Param("qs") DepotQuery depotQuery);
}
